home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 669 < prev    next >
Internet Message Format  |  1996-08-06  |  706b

  1. Path: netnews.jhuapl.edu!usenet
  2. From: Stan Novinsky <stan_novinsky@jhuapl.edu>
  3. Newsgroups: comp.std.c
  4. Subject: Nested MACROS ??
  5. Date: 29 Mar 1996 12:23:20 GMT
  6. Organization: Johns Hopkins University Applied Physics Lab
  7. Message-ID: <4jgkno$mrr@aplinfo.jhuapl.edu>
  8. NNTP-Posting-Host: f3c-sjn.jhuapl.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (Macintosh; I; PPC)
  13. X-URL: news:comp.std.c
  14.  
  15. I am using a nested MACRO.  The problem is that only the 
  16. inner part is execur
  17.  
  18. Given the following MACRO definitions and code,
  19.  
  20.  #define CUBE(X)   ((x * x) * x)
  21.  #define ABS(X)    ((x < 0)   ? -(x) : (x))
  22.  
  23.  #define NEST(X)        (ABS(CUBE(X)))
  24.